package com.dayfly.tip.action;

import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

public class BaseAction extends ActionSupport implements SessionAware {

	private static final long serialVersionUID = 82776993060730665L;
	
	public static final String LOGIN = "login";

	private String userName;

	private String password;

	private Map<String, Object> currentSession;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public void setSession(Map<String, Object> session) {
		this.currentSession = session;
	}

	public Map<String, Object> getSession() {
		return currentSession;
	}
}
